package com.zsr.orderservice.client;

import com.zsr.commonutils.entity.vo.CourseInfoCommonVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * order 中调用edu模块获取课程信息
 * @author zsr
 * @date 2021/6/22 23:24
 */
@Component
@FeignClient(name ="service-edu", fallback = EduFileDegradeFeignClient.class)
public interface EduClient {
    //根据课程id查询课程信息
    @GetMapping("/eduservice/course/getDto/{courseId}")
    public CourseInfoCommonVo getCourseInfoDto(@PathVariable("courseId") String courseId);
}
